<template>
  <div class="search">
    <van-nav-bar
      title="搜索"
      left-text="返回"
      right-text="..."
      left-arrow
      @click-left="$router.go(-1)"
    />
    <!-- 搜索框 -->
    <div class="search_input">
      <input type="text" placeholder="输入商家 商品名称" />
      <span>搜索</span>
    </div>
    <!-- 历史搜索部分 -->
    <TextSearch></TextSearch>
    <!-- 商品搜索部分 -->
    <!-- <ShopSearch></ShopSearch> -->
  </div>
</template>

<script>
// 导入商品部分组件，和历史搜索部分组件
import TextSearch from "./Search/TextSearch.vue";
// import ShopSearch from './Search/ShopSearch.vue'

export default {
  components: {
    TextSearch,
    // ShopSearch
  },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.search_input {
  height: 45px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  //  background-color: aqua;
  input {
    width: 280px;
    height: 35px;
    border: 1px solid gray;
    text-align: center;
    font-size: 16px;
    border-radius: 20px;
  }
  span {
    width: 55px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-radius: 10px;
    background-color: #ccc;
  }
}
</style>
